﻿<?php

$english = isEnglish();

$homeName = "Aktuality";
$aboutUsName = "O nás";
$howToRegisterName = "Služby";
$linksName = "Dôležité linky";
$contactsName = "Kontakt";

if ($english)
{
    $homeName = "News";
    $aboutUsName = "About us";
    $howToRegisterName = "Services";
    $linksName = "Important links";
    $contactsName = "Contact";
}

echo("
   <div class=\"mainmenu\"> 
     <a id =\"home\" class=\"myhref selectedtab\" href=\"javascript:void(0)\">$homeName</a> 
     <a id =\"about_us\" class=\"myhref\" href=\"javascript:void(0)\">$aboutUsName</a>
     <a id =\"howtoregister\" class=\"myhref\" href=\"javascript:void(0)\">$howToRegisterName</a>
     <a id =\"links\" class=\"myhref\" href=\"javascript:void(0)\">$linksName</a>
     <a id =\"contacts\" class=\"myhref\" href=\"javascript:void(0)\">$contactsName</a>
     &nbsp;
   </div>
 
<div id=\"singletab\" class=\"singletab\"></div> 
<script type=\"text/javascript\"> 
 
   previousTag = 'home';
   $(\".myhref\").click(function()
   {
       var idTag = $(this).attr( 'id' );
       var idStr = './staticsites/';
       idStr += idTag;
       idStr += '.php';
           
       $(\"#singletab\").load( idStr );
       if (idTag != previousTag)
       {
           $('#'+ idTag ).addClass('selectedtab');
           $('#'+ previousTag ).removeClass('selectedtab');
           previousTag = idTag;
       }
   });

    $('#home').click();

</script>
    ");

?>
